package ru.pashkan.orga;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main  {
    public static void main(String[] args) {
//        try {
            ApplicationContext appContext = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml"});

            BasicOrganizer organizer = (BasicOrganizer) appContext.getBean("organizer");
            organizer.init("hello");

            //cust.printThrowException();
//        } catch (Throwable e) {
//            System.out.println("ERROR " + e);
//        }
    }
}
